package com.monitor.dao;

import com.monitor.entity.ErpSystemMessage;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import com.baomidou.mybatisplus.mapper.BaseMapper;

/**
 * <p>
 * 消息表 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2018-11-19
 */
public interface ErpSystemMessageMapper extends BaseMapper<ErpSystemMessage> {
	@Update("update erp_system_message sm set sm.send_flag='read' where sm.receive_userId=#{userId} and sm.send_content=#{content} and sm.send_flag is null")
	public Integer updateSendFlag(@Param("userId")int userId,@Param("content")String content);
}
